home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.5 KB | 39 lines | [TEXT/GEOL] |
- Item 6402369 14-Jan-91 20:50PST
-
- From: WICAT Wicat Systems, Michael Rossetti,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Item forwarded by SPA.DTS to SPA0144
-
- ------------------------------------------------------------------------------
-
- Sub: Row/Col Selection in TGridView
-
- Dear MacApp Friends,
-
- Well another MacWorld down the drain (ahem, in a manner of speaking). And so
- I've gone back to work on my little game and find that I need a little advice.
-
- Essentially, I'm putting together a game board editor by subclassing TGridView.
- So far it works just fine. I can move playing pieces around and scroll the
- board. Selection works find, too. But, now I wan't to select an entire row or
- an entire column by clicking in the row or column header.
-
- At first I thought I'd just make the first row and column special of the
- TGridView. But then I ran into all sorts of problems when I wanted to scroll
- the game board but keep this special row and column in view.
-
- So what I'm thinking of doing now is creating two new subclasses of TGridView
- which will take the place of the row and column headers. I think it will also
- make handling the mouse clicking a lot easier. But I will need to figure out
- how to get the scroller to work correctly.
-
- What do you all think about this approach to column and row selection? I there
- some much easier way to do it that I'm overlooking?
-
- Thanks for you help.
-
- Mike (I think there's a lot of life left in MacApp!) Rossetti
-
-